From: YAMAMOTO Mitsuharu Date: Fri, 26 Jan 2007 08:36:24 +0000 (+0000) Subject: (SIGNAL_THREAD_CHECK): Use pthread_equal. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~2668 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=c49ad7552b3d2c639ae82f62a018e2a4f2303a5c;p=emacs.git (SIGNAL_THREAD_CHECK): Use pthread_equal. --- diff --git a/src/syssignal.h b/src/syssignal.h index a4e3fcb3e1b..36292670bc6 100644 --- a/src/syssignal.h +++ b/src/syssignal.h @@ -210,7 +210,7 @@ char *strsignal (); #ifdef HAVE_GTK_AND_PTHREAD #define SIGNAL_THREAD_CHECK(signo) \ do { \ - if (pthread_self () != main_thread) \ + if (!pthread_equal (pthread_self (), main_thread)) \ { \ /* POSIX says any thread can receive the signal. On GNU/Linux \ that is not true, but for other systems (FreeBSD at least) \